]> dgit.raspbian.org Git - gnome-shell.git/commit
lookingGlass: Handle unprintable object
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 12 Jul 2023 22:25:43 +0000 (00:25 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 14 Jul 2023 12:36:53 +0000 (12:36 +0000)
commit03025d7cff68800507ac14766f99ad54c247bb3e
tree6d044e2a2c63ac4657d0ec03c641539efc592ecf
parent21e4cb142dce310e0209619dc3e8478429677e98
lookingGlass: Handle unprintable object

We currently throw an error when encountering a result that cannot
be represented as string, with the prompt appearing somewhat stuck
(the input cannot be committed).

Showing a lame fallback instead at least avoids that issue. When
the object has a typeof 'object' but is not an instanceof Object,
we are likely dealing with an ES module, and can show a slightly
less lame fallback.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2842>
js/ui/lookingGlass.js